package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @description:
 * @Author: hongxiao
 * @date: 2019-01-12 17:18
 */
@Getter
public enum  SmsSendTypeEnum {
    /**
     * 短信发送类型
     */
    AT_ONCE(0, "enum.smsSendType.name.at_once"),
    DELAY(1, "enum.smsSendType.name.delay"),
            ;
    /**
     * 短信发送类型状态
     */
    private int code;
    /**
     * 短信发送类型名称
     */
    private String name;

    SmsSendTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
